﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lswweb.Model
{
    public class ProductWholesaleRuleInfo
    {
        public Int64 Id { get; set; }

        public Int32 MinNumber { get; set; }

        public Int32 MaxNumber { get; set; }

        public Decimal PriceRate { get; set; }

        public Decimal Rate(Decimal price)
        {
            return Math.Round(price * PriceRate / 100,2);
        }
    }
}
